package sprites;

import com.golden.gamedev.object.Timer;

import engine.TowerDefense;

/**
 * The weakest enemy.
 * 
 * @author Alex Lee (hl69)
 */
public class PacmanEnemy extends Enemy
{

	public PacmanEnemy(TowerDefense owner, double x, double y)
	{
		super(owner, owner.getImages("resources/pacman.png", 2, 1), x, y);
		
		/*
		 * This one moves pretty slowly and isn't very strong.
		 */
		myVelocity = -0.05;
		setHorizontalSpeed(myVelocity);
		hitpoints = 100;
		damage = 30;
		firingRate = new Timer(1000);
		
		/*
		 * Nor is it very valuable.
		 */
		value = 10;
		
		/*
		 * Animate it.
		 */
		getAnimationTimer().setDelay(250);
		setAnimationFrame(0, 1);
		setAnimate(true);
		setLoopAnim(true);
	}

}
